package com.zgw.his.emr;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

import com.zgw.his.emr.workbench.NavigationView;
import com.zgw.his.emr.workbench.PageView;

public class Perspective implements IPerspectiveFactory {

	/**
	 * The ID of the perspective as specified in the extension.
	 */
	public static final String ID = "com.zgw.his.emr.Perspective";

	public void createInitialLayout(IPageLayout layout) {
		String editorArea = layout.getEditorArea();
		layout.setEditorAreaVisible(false); // 隐藏编辑区域

		layout.addStandaloneView(NavigationView.ID, false, IPageLayout.LEFT,
				0.25f, editorArea);
		IFolderLayout folder = layout.createFolder("pageview",
				IPageLayout.LEFT, 0.75f, editorArea);
		folder.addPlaceholder(PageView.ID + ":*");
	}
}
